package com.zito.health.controller;

import com.zito.health.common.result.PlatformResult;
import com.zito.health.entity.ItemResearcher;
import com.zito.health.entity.ItemScoring;
import com.zito.health.service.ItemScoringService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目分值
 */
@Slf4j
@RestController
@RequestMapping("/item/scoring")
public class ItemScoringController {

    @Autowired
    private ItemScoringService itemScoringService;

    @PostMapping("/list")
    public PlatformResult list(ItemScoring item){
        return  PlatformResult.success(itemScoringService.query(item));
    }

}
